#include "../BoardGameBase/BaseFrameListener.h"

class CBattleLineFrameListener : public CBaseFrameListener
{
	bool mMouseDown;       // Whether or not the left mouse button was down last frame
	Real mToggle;          // The time left until next toggle
	Real mRotate;          // The rotate constant
	Real mMove;            // The movement constant
	SceneManager *mSceneMgr;   // The current SceneManager
	SceneNode *mCamNode;   // The SceneNode the camera is currently attached to

public:
	CBattleLineFrameListener(RenderWindow* win, Camera* cam,SceneManager* sceneMgr, bool bufferedKeys = false, bool bufferedMouse = false,
		bool bufferedJoy = false )  : CBaseFrameListener(win,cam)
	{
		// key and mouse state tracking
		mMouseDown = false;
		mToggle = 0.0;

		// Populate the camera and scene manager containers
		mCamNode = cam->getParentSceneNode();
		mSceneMgr = sceneMgr;

		// set the rotation and move speed
		mRotate = 0.13;
		mMove = 250;
	}

	bool frameStarted(const FrameEvent& evt);
	bool frameEnded(const FrameEvent& evt);

};